package piccolo;

import java.awt.BorderLayout;
import java.awt.Dimension;

import javax.swing.JDialog;
import javax.swing.JFrame;
import javax.swing.JPanel;

public class mySQLSelector extends JDialog{
	private static final long serialVersionUID = 3821755908516325814L;
	private static mySQLSelector instance;
	private mySqlPane pane = new mySqlPane();
	
	public static mySQLSelector getInstance()
	{
		if(instance==null) instance = new mySQLSelector();
		return instance;
	}
	
	public mySQLSelector()
	{
		super();
		
		Dimension d = new Dimension(300,200);
		
		this.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);
		this.setLayout(new BorderLayout());
		this.setPreferredSize(d);
		this.setMinimumSize(d);
		this.setVisible(true);
		this.setAlwaysOnTop(true);
		this.setFocusable(true);
		this.setModal(true);
		
		JPanel panel = new JPanel();
		this.setPreferredSize(new Dimension(10,10));
		this.add(panel,BorderLayout.WEST);
		
		panel = new JPanel();
		this.setPreferredSize(new Dimension(10,10));
		this.add(panel,BorderLayout.EAST);
		
		panel = new JPanel();
		this.setPreferredSize(new Dimension(10,10));
		this.add(panel,BorderLayout.NORTH);
		
		panel = new JPanel();
		this.setPreferredSize(new Dimension(10,10));
		this.add(panel,BorderLayout.SOUTH);
		
		this.add(pane,BorderLayout.CENTER);
	}
}
